package com.exam.bean;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 客观题实体 2012-12-27
 * 
 * @author MuLing
 * 
 */
@Entity
@Table(name = "tb_objective_Question")
public class ObjectiveQuestion implements Serializable {

	private static final long serialVersionUID = 1L;

	@Id
	// 指定为主键
	@GeneratedValue(strategy = GenerationType.AUTO)
	// 采用自动增长类型
	private Integer id;// 主键id

	@Column(name = "oq_title")
	private String title;// 题目内容

	@Column(name = "oq_analysis")
	private String analysis;// 题目分析

	private Integer p_id;// 所属试卷

	/**
	 * @param id
	 *            the id to set
	 */
	public void setId(Integer id) {
		this.id = id;
	}

	/**
	 * @return the id
	 */
	public Integer getId() {
		return id;
	}

	/**
	 * @param title
	 *            the title to set
	 */
	public void setTitle(String title) {
		this.title = title;
	}

	/**
	 * @return the title
	 */
	public String getTitle() {
		return title;
	}

	/**
	 * @param analysis
	 *            the analysis to set
	 */
	public void setAnalysis(String analysis) {
		this.analysis = analysis;
	}

	/**
	 * @return the analysis
	 */
	public String getAnalysis() {
		return analysis;
	}

	/**
	 * @param p_id
	 *            the p_id to set
	 */
	public void setP_id(Integer p_id) {
		this.p_id = p_id;
	}

	/**
	 * @return the p_id
	 */
	public Integer getP_id() {
		return p_id;
	}
}
